<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WoNiuShop</title>
<link rel="shortcut icon" href="icon.png" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/basic.css" />
<link rel="stylesheet" type="text/css" href="css/order.css" />
</head>
<body>
<%@ include file="loginandregister.jspf" %>
	<div id="order-main">
		<div id="address">
			<h1 class="title">选择邮寄地址</h1>	
			<c:forEach var="address" items="${addresslist}">		
			<div class="a-list">
				<div class="a-item">
					<div class="i-info">
						<span class="i-s-title">姓名: </span><span class="i-s-name">${address.uName}</span>
						<span class="i-s-title">电话: </span><span class="i-s-phone">${address.phoneNum}</span>
						<span class="i-s-title">邮寄编码: </span><span class="i-s-number">610620</span>
					</div>
					<div class="i-address ">${address.address}</div>
				</div>
			</div>
			</c:forEach>
			<div class="add icon i-add"><a href="AddAddressServlet">添加邮寄地址</a></div>
		</div>
		<div id="o-detail">
			<h1 class="d-number">订单号：${orderNum}</h1>			
			<div class="d-goodlist">
			<c:forEach var="cartItem" items="${shopCart.allCartItem}">
				<div class="g-item">
					<div class="item-img">
						<img src="${cartItem.goods.goodImgPath}" />
					</div>
					<div class="item-name">
						<a href="good.html">${cartItem.goods.gName}</a>
					</div>
					<div class="item-price s-money">${cartItem.subTotalPrice}</div>
					<div class="item-count">${cartItem.buyCount}</div>
				</div>
				</c:forEach>
			</div>
			<div class="d-total">总价：<span class="d-s-price">${shopCart.totalPrice}</span></div>
		</div>
		<div id="gopay" ><button class="btn btn-danger">结账</button></div>
	</div>
	<!-- 页尾 -->
		<div id="footer">
			蜗牛创想科技-woniushop&copy; 版权所有
		</div>
		<script src="js/jquery.min.js" ></script>
		<script src="js/basic.js" ></script>
</body>
</html>